﻿<Page x:Class="NewMarkersSample.Pages.PieChartAPIPage"
	  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
	  xmlns:local="clr-namespace:NewMarkersSample.Pages"
	  Title="PieChartAPIPage">
	<Grid>
		<Grid.ColumnDefinitions>
		</Grid.ColumnDefinitions>

		<d3:ChartPlotter Grid.Column="0">
			<d3:PieChart Name="pieChart" BorderBrush="Black" BorderThickness="2">

			</d3:PieChart>

			<Grid Width="200" Canvas.Right="10" Canvas.Bottom="10">
				<Rectangle RadiusX="7" RadiusY="7" Fill="White" Stroke="LightGray" StrokeThickness="3" Margin="5,5,0,0"/>
				<Rectangle RadiusX="7" RadiusY="7" Fill="White" Stroke="DarkGray" StrokeThickness="3" Margin="0,0,5,5"/>
				<StackPanel Margin="10">
					<local:PieChartItemEditor x:Name="editor"/>
					<Grid>
						<Button HorizontalAlignment="Left" Margin="10,0,0,0" Name="addBtn" Click="addBtn_Click" 
								IsEnabled="{Binding HasResult, ElementName=editor}"
								IsDefault="True">Add</Button>
						<Button HorizontalAlignment="Right" Margin="0,0,10,0" Name="resetBtn" Click="resetBtn_Click"
								IsCancel="True">Reset</Button>
					</Grid>
				</StackPanel>
			</Grid>
		</d3:ChartPlotter>

	</Grid>
</Page>
